package A;

public class ATest {
    public static void main(String[] args) {
        String str = "ABCDE";
        String temp = str.replace("",",");
        System.out.println(temp);
        StringBuilder sb = new StringBuilder();
        sb.append(temp);
        sb.delete(sb.length()-3,sb.length());
        String s = sb.substring(1);
        System.out.println(s);
    }
}
